<template>
  <div>
    <el-main >
      <el-col :xs="15" :sm="15" :md="15" :lg="15">
        <table border="1" style="width: 160%; margin-top: 10px;" align="center" >

          <tr align="center">
            <td >
              <el-col :span="20">
                <div class="grid-content" style="width: 100%;height: 100%;"><a href="/#/notify/OaNotifyList"><img src="./img/通告.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/notify/OaNotifyList')">通告管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="23">
                <div class="grid-content "><a href="/#/sys/file/index"><img src="./img/文件-.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/sys/file/index')">文件管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="24">
                <div class="grid-content "><a href="/#/sys/office/OfficeList"><img src="./img/机构.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/sys/office/OfficeList')">机构管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
          </tr>
          <tr align="center">
            <td>
              <el-col :span="20">
                <div class="grid-content "><a href="/#/sys/role/RoleList"><img src="./img/角色.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/sys/role/RoleList')">角色管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="23">
                <div class="grid-content "><a href="/#/sys/user/UserList"><img src="./img/用户.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/sys/user/UserList')">用户管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="24">
                <div class="grid-content "><a href="/#/sys/post/PostList"><img src="./img/岗位切换.png"></a>
                  <center>
                    <el-button type="text" @click="jump('/sys/post/PostList')">岗位管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
          </tr>
          <tr align="center">
            <td>
              <el-col :span="20">
                <div class="grid-content " ><a href="/#/sys/menu/MenuList"><img style="width: 55px;" src="./img/菜单.png"></a>
                  <center>
                    <el-button type="text" @click="jump(' /sys/menu/MenuList')">菜单管理</el-button>
                  </center>
                </div>
              </el-col>
            </td>
          </tr>
        </table>
      </el-col>


    </el-main>



  </div>
</template>

<script>
  export default {
    data () {
      return {
        imagebox: [{id: 0,
          idView: require('./img/timg.jpg')},
        {id: 1,
          idView: require('./img/timg1.jpg')
        },
        {id: 2,
          idView: require('./img/timg2.jpg')
        }
        ],
        screenWidth: 0
      }
    },
    methods: {
      jump (p) {
        this.$router.push(p)
      },
      goTo (path) {
        this.$router.replace(path)
      },
      setSize: function () {
        // 通过浏览器宽度(图片宽度)计算高度
        this.bannerHeight = 400 / 1920 * this.screenWidth
      }
    },
    mounted () {
      // 首次加载时,需要调用一次
      this.screenWidth = window.innerWidth
      this.setSize()
      // 窗口大小发生改变时,调用一次
      window.onresize = () => {
        this.screenWidth = window.innerWidth
        this.setSize()
      }
    }
  }
</script>

<style>
  .footer_guide {
    border-top: 1px soild #e4e4e4;
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 1px;
    font-size: 600px;
    background-color: #fff;
    width: 100%;
    height: 50px;
    display: flex;

  }

  .guide_item {
    display: flex;
    flex: 1;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    color: #999999;
  }

  .guide_itemc {
    display: flex;
    flex: 1;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
    color: #999999;
  }

  .on {
    color: #02a774
  }

  span {
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .iconfont {
    font-size: 22px;
  }

  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>
